#!D:\\Python27\\python
# Filename:powersum.py
def powersum_tuple(power,*args):
    '''Return the sum of each argument raised to specified power.'''
    total = 0
    #print args
    for i in args:
        total += pow(i,power)
    return total

print powersum_tuple(2,0,1,2,3)

#def powersum_dict(power,**args):
    '''Return the sum of each argument raised to specified power.'''
#    total = 0
#    print args
#    for i in args:
#       total += pow(i,power)
#    return total

#print powersum_dict(2)


